package com.lemon.tieba.user.domain;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 用户
 *
 * @author ymh
 * @date 2019-3-4 17:50
 */
@Data
@Table(name = "sys_user")
public class User {

    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;

    // 用户名
    private String username;

    // 密码
    private String password;

    // 昵称
    private String nickname;

    // 头像地址
    private String avator;

    // 创建时间
    private Long created;

    // 修改时间
    private Long updated;
}
